package com.hrma.dao;

import com.github.pagehelper.Page;
import com.hrma.entity.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface OvertimeRecordMapper {
    void add(OvertimeRecordVO data);

    List<SelectResult> select();

    Page<OvertimeRecordVO> getList(OvertimeRecordDTO data);

    boolean exist(@Param("id") Integer id);

    /**
     * 根据员工编号和时间获取当天审核通过的加班申请
     */
    List<beginEndTime> getBeginEndTime(String employeeNum, Date oneDay, Date secondDay);
}
